package com.project.restaurant.order.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class OrderItem {

    /**
     * 订单项id
     */
    private Long itemId;

    /**
     * 餐点信息
     */
    private MealItem mealItem;

    /**
     * 下单时餐点的单位价格
     */
    private Integer purchasingMealPrice;

    /**
     * 购买的数量
     */
    private Integer purchaseNum;

    @Override
    public String toString() {
        return "OrderItem{" +
                "itemId=" + itemId +
                ", mealItem=" + mealItem +
                ", purchasingMealPrice=" + purchasingMealPrice +
                ", purchaseNum=" + purchaseNum +
                '}';
    }
}
